<template>
  <div class="my-header">
    <input :value="value" type="text" @input="inpChange" />
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: ["value"],
  data() {
    return {};
  },
  methods: {
    inpChange(e) {
      this.$emit("input", e.target.value);
    },
  },
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped>
.my-header {
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  input {
    width: 70%;
    height: 35px;
  }
  button {
    width: 20%;
    height: 35px;
  }
}
</style>
